package com.example.g5project.service;

import com.example.g5project.entity.frontEndObject.NewChat;
import com.example.g5project.entity.frontEndObject.NewChatFrontEnd;
import com.example.g5project.exception.EntityNotExistException;

import java.text.ParseException;
import java.util.ArrayList;

/**
 * @author Hu Zirui
 * @version 1.0.0
 * @ClassName SupervisorService.java
 * @Description TODO
 * @createTime 2022年03月23日 13:18:00
 */

public interface NewChatService {
    ArrayList<NewChat> getChatMsgByNameAndDate(String name, String date);      //根据用户姓名和日期搜索某个咨询师聊天记录梗概

    void addNewChat(NewChat newChat);                                             // 插入一条聊天记录梗概

    ArrayList<NewChat> getAllChatMsgByConsultantName(String name) throws ParseException;                                        // 根据咨询师姓名返回全部的聊天记录梗概

    void updateNewChatComment(Integer id, String content);                                                        // 根据id更新某一条聊天记录梗概

    String getEndTimeById(Integer id);

    ArrayList<NewChat> getAllMsg();

    NewChat getRecentMsg();

    String getRecentMsgEndTime();

    void updateNewChatCommentByID(Integer id, NewChat newChat) throws EntityNotExistException;

    void updateHoldTimeByName(String name, String hold_time);

    void updateHoldTimeByChatID(Integer id, String hold_time);

    ArrayList<NewChatFrontEnd> getAllChatMsgByConsultantNameStr(String name) throws ParseException;

    ArrayList<NewChatFrontEnd> getAllMsgStr();
}
